var artTemplate = require('express-art-template')
var bodyParser = require('body-parser')
var express = require('express')
var router = require('./router')


var app = express()
app.engine('html', require('express-art-template'))
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

app.use('/node_modules', express.static('./node_modules/'))
app.use('/public', express.static('./public/'))
app.use('/views', express.static('./views/'))
app.use(router)

app.listen(3000, function () {
    console.log('runing')
})